﻿<UserControl x:Class="Black.Minecraft.Editor.Views.DataViews.GameInformationDataView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:tk="http://schemas.xceed.com/wpf/xaml/toolkit"
             xmlns:vm="clr-namespace:Black.Minecraft.Editor.ViewModels"
             Foreground="Black">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <!--  Type de partie  -->

        <TextBlock Grid.Row="0"
                   Grid.Column="0"
                   Margin="4"
                   Text="Game Type:" />
        <ComboBox Grid.Row="1"
                  Grid.Column="0"
                  Width="150"
                  Margin="4"
                  FontWeight="Normal"
                  ItemsSource="{Binding Source={x:Static vm:MainViewModel.Instance},
                                        Path=SoloGameTypes}"
                  SelectedItem="{Binding GameType,
                                         Mode=TwoWay}" />

        <!--  Mode hardcore  -->

        <TextBlock Grid.Row="0"
                   Grid.Column="1"
                   Margin="4"
                   Text="Hardcore:" />
        <ComboBox Grid.Row="1"
                  Grid.Column="1"
                  Width="150"
                  Margin="4"
                  FontWeight="Normal"
                  ItemsSource="{Binding Source={x:Static vm:MainViewModel.Instance},
                                        Path=ByteBinaryChoices}"
                  SelectedItem="{Binding IsHardcore,
                                         Mode=TwoWay}" />

        <!--  Allow commands  -->

        <TextBlock Grid.Row="0"
                   Grid.Column="2"
                   Margin="4"
                   Text="Allow commands:" />
        <ComboBox Grid.Row="1"
                  Grid.Column="2"
                  Width="150"
                  Margin="4"
                  FontWeight="Normal"
                  ItemsSource="{Binding Source={x:Static vm:MainViewModel.Instance},
                                        Path=ByteBinaryChoices}"
                  SelectedItem="{Binding AllowCommands,
                                         Mode=TwoWay}" />

        <!--  Level name  -->

        <TextBlock Grid.Row="0"
                   Grid.Column="3"
                   Margin="4"
                   Text="Level name:" />
        <TextBox Grid.Row="1"
                 Grid.Column="3"
                 Width="150"
                 Margin="4"
                 FontWeight="Normal"
                 Text="{Binding LevelName,
                                Mode=TwoWay}" />

        <!--  Spawn point  -->

        <TextBlock Grid.Row="0"
                   Grid.Column="4"
                   Margin="4"
                   Text="Spawn point:" />
        <StackPanel Grid.Row="1"
                    Grid.Column="4"
                    Margin="4"
                    Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center"
                       FontWeight="Normal"
                       Text="X:" />
            <tk:IntegerUpDown Width="80"
                              Margin="8,0,8,0"
                              FontWeight="Normal"
                              Maximum="12550821"
                              Minimum="-12550821"
                              TextAlignment="Left"
                              Value="{Binding SpawnX,
                                              Mode=TwoWay}" />
            <TextBlock VerticalAlignment="Center"
                       FontWeight="Normal"
                       Text="Y:" />
            <tk:IntegerUpDown Width="80"
                              Margin="8,0,0,0"
                              FontWeight="Normal"
                              Maximum="12550821"
                              Minimum="-12550821"
                              TextAlignment="Left"
                              Value="{Binding SpawnY,
                                              Mode=TwoWay}" />
        </StackPanel>

        <!--  Game seed  -->

        <TextBlock Grid.Row="0"
                   Grid.Column="5"
                   Margin="4"
                   Text="Map seed:" />
        <TextBlock Grid.Row="1"
                   Grid.Column="5"
                   Width="80"
                   Margin="4"
                   FontSize="10"
                   FontWeight="Normal"
                   Text="{Binding Seed,
                                  Converter={StaticResource LongToStringConverter}}" />
    </Grid>

</UserControl>
